projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f96de0c
)
xenpaging: remove srand call
author
Olaf Hering
<olaf@aepfle.de>
Fri, 10 Jun 2011 08:47:16 +0000
(10:47 +0200)
committer
Olaf Hering
<olaf@aepfle.de>
Fri, 10 Jun 2011 08:47:16 +0000
(10:47 +0200)
The policy uses now a linear algorithm instead of a random one.
Remove the call to srand().
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
tools/xenpaging/xenpaging.c
patch
|
blob
|
history
diff --git
a/tools/xenpaging/xenpaging.c
b/tools/xenpaging/xenpaging.c
index c96424000fbce97a277f3f96e490fe6745e50432..8034c17eb174cc288d09b0b2c3c65caa4414941f 100644
(file)
--- a/
tools/xenpaging/xenpaging.c
+++ b/
tools/xenpaging/xenpaging.c
@@
-581,9
+581,6
@@
int main(int argc, char *argv[])
domain_id = atoi(argv[1]);
num_pages = atoi(argv[2]);
- /* Seed random-number generator */
- srand(time(NULL));
-
/* Initialise domain paging */
paging = xenpaging_init(domain_id);
if ( paging == NULL )